﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WebApplication2.EntityFrameWork;
using static LBCMS.EntityFrameWork.ClassExtraAttribute;
using System.ComponentModel;

namespace LBCMS.EntityFrameWork.FrameModel
{
    [DisplayName("站点")]
    public class E_Site
    {
        [Key, DisplayName("ID")]
        public int id { get; set; }

        [MaxLength(50), Required, Search, DisplayName("站点名称"), Inline, ShowInList]
        public string siteName { get; set; }

        [MaxLength(20), Required, Search, DisplayName("站点编号"), Inline, ShowInList]
        public string siteNo { get; set; }

        [MaxLength(50), DisplayName("公司名称"), ShowInList]
        public string company { get; set; }

        [MaxLength(50), DisplayName("公司唯一标识"), Hidden]
        public string companyGuid { get; set; }


        [MaxLength(50), Search, CodeName("站点类别"), DropDownList, DisplayName("站点类别"), ShowInList]
        public string moniType { get; set; }


        [MaxLength(100), DisplayName("地址"), ShowInList]
        public string address { get; set; }


        [DecimalPrecision(18, 6), DisplayName("经度")]
        public decimal longAdd { get; set; }


        [DecimalPrecision(18, 6), DisplayName("纬度")]
        public decimal latAdd { get; set; }

        [DisplayName("添加时间")]
        public DateTime addTime { get; set; }

 

        [DisplayName("站点说明"), MaxLength(150),TextArea]
        public string info { get; set; }
    }
}